package com.yx.utils;

import com.alibaba.fastjson.JSON;

/**
 * @Classname FastJson
 * @Date 2021/07/10 10:00
 * @Author by yx
 * @Description : 本类暂未使用
 */
public class FastJson {

    public static String toJSON(Object targer) {
        return JSON.toJSONString(targer);
    }

    public static <T> T fromJson(String json, Class<T> cls) {
        return JSON.parseObject(json, cls);
    }
}
